package chen.huai.jie.spring.xmlconfig.db.mongo.repository;

import chen.huai.jie.spring.xmlconfig.db.mongo.entity.Message;
import org.springframework.data.mongodb.repository.MongoRepository;

public interface MessageRepository extends MongoRepository<Message, String> {

    Message findMessageByName(String name);

    void deleteMessagesByName(String name);
}
